<?php
/**
 * @link https://ym2.cleverstone.top
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

use yii\helpers\Html;
use builder\base\BaseBundle;

BaseBundle::register($this);

/** @var \yii\web\View $this view组件实例 */
/** @var string $content 主体内容 */
/** @var string $uiTheme UI主题 */

$uiTheme = !empty($this->params['uiTheme']) ? $this->params['uiTheme'] : 'ym2-theme-pink';

?>
<?php $this->beginPage() ?>
    <!DOCTYPE html>
    <html lang="<?= Yii::$app->language ?>" class="h-100">
    <head>
        <meta charset="<?= Yii::$app->charset ?>">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <?php $this->registerCsrfMetaTags() ?>
        <?= \builder\helper\H5::appMetaTags() ?>
        <title><?= Html::encode($this->title) ?></title>
        <?php $this->head() ?>
    </head>
    <body class="d-flex flex-column h-100 <?= $uiTheme ?>" ng-cloak ng-app="ym2.app">
    <?php $this->beginBody() ?>

    <main role="main" class="flex-grow-1 layui-row">
        <?= $content ?>
    </main>

    <?php $this->endBody() ?>
    </body>
    </html>
<?php $this->endPage();
